Template:Rootname

Purpose
Extracts the root-most article name for the current page, even when used in mainspace, where subpages are not enabled (built-in support methods, such as the magic word, do not work in namespaces where subpages are not explicitly enabled).